// 获取应用实例
const app = getApp();
const api = require('../../utils/api');
const healthApi = require('../../utils/api/health');

// 保存风险评估记录
function saveAssessment(assessment) {
  healthApi.saveRiskAssessment(assessment)
    .then(res => {
      console.log('风险评估记录已保存', res);
      // 其他处理...
    })
    .catch(err => {
      console.error('保存风险评估记录失败', err);
      // 错误处理...
    });
} 
 